export function toDateTime(time){
  var date = new Date(time*1000 + 8 * 3600 * 1000);
  return date.toJSON().substr(0, 16).replace('T', ' ').replace(/-/g, '-');
}

export function toTiming(time) {
  return time.toString().split('.')[0] + '秒' + time.toString().split('.')[1] + "\""
}
